#ifndef TLOCATIONINFO_H_
#define TLOCATIONINFO_H_

class CLocationInfo : public CBase
	{
public:
	virtual ~CLocationInfo();
	CLocationInfo();
	
public:
	inline const TDesC& GetLocName() const;
	void SetLocName(const TDesC& locName);
	inline TReal GetAltitude() const;
	void SetAltitude(TReal altitude);
	inline TReal GetLatitude() const;
	void SetLatitude(TReal latitude);
	inline TReal GetLongitude() const;
	void SetLongitude(TReal longitude);
	inline TReal GetAccuracy() const;
	void SetAccuracy(TReal accuracy);
	
private:
	TReal 		iAltitude;// 海拔
	TReal 		iLatitude;// 纬度
	TReal 		iLongitude;// 经度
	TReal 		iAccuracy;// 精确度
	HBufC*		iLocName;// 地理位置名称
	};

inline const TDesC& CLocationInfo::GetLocName() const
	{
	return iLocName == NULL ? KNullDesC() : *iLocName;
	}

inline TReal CLocationInfo::GetAltitude() const
	{
	return iAltitude;
	}

inline TReal CLocationInfo::GetLatitude() const
	{
	return iLatitude;
	}

inline TReal CLocationInfo::GetLongitude() const
	{
	return iLongitude;
	}

inline TReal CLocationInfo::GetAccuracy() const
	{
	return iAccuracy;
	}

#endif 
